<script lang="ts" setup>
import { useRouter } from 'vue-router'

const router = useRouter()
const back = () => {
  // 返回上一页
  router.back()
}
</script>

<template>
  <div class="container">
    <div class="wrapper">
      <div class="content">
        <img
          alt="403"
          src="//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/6147b8a9674c4c21a0a1d387e2f8fb31~tplv-49unhts6dw-image.image"
        />
        <h2>403</h2>
        <h3>抱歉，您没有访问权限</h3>
        <a-button type="primary" @click="back">返回上一页</a-button>
      </div>
    </div>
  </div>
</template>

<style lang="less" scoped>
.container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-1);
}

.wrapper {
  padding: 20px;
}

.content {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;

  img {
    width: 300px;
    max-width: 100%;
  }

  h2 {
    font-size: 36px;
    color: var(--color-text-1);
    margin: 0;
  }

  h3 {
    font-size: 20px;
    color: var(--color-text-3);
    margin: 0;
  }
}
</style>
